package com.lys.eduservice.cilent;

import com.lys.eduservice.entity.vo.UcenterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author Lyyyys
 * @version 1.0
 * @date 2021/6/27 9:33
 */
@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {

    //根据用户id获取用户信息
    @PostMapping("/educenter/member/getInfoUc/{id}")
    public UcenterVo getUcenter(@PathVariable("id") String memberId);
}


